<template>
	<view>
		<u-popup :show="show" round="24rpx" mode="center" :safeAreaInsetBottom="false">
			<view class="contentBox">
				<image class="popup-close" src="../static/common/icon_close.png" @click="authenticationCancel" />
				<image src="../static/common/icon_auth.png" class="popup-image"></image>
				<view class="popup-title">请完成真人认证</view>
				<view class="popup-tips">
					真人认证只需2分钟~
				</view>
				<view class="tips-box">
					<view class="tip-item">
						<view class="dot"></view>
						<view class="text">解锁超多功能</view>
					</view>
					<view class="tip-item">
						<view class="dot"></view>
						<view class="text">专属推荐标识</view>
					</view>
					<view class="tip-item">
						<view class="dot"></view>
						<view class="text">主页优先推荐</view>
					</view>
					<view class="tip-item">
						<view class="dot"></view>
						<view class="text">一键打招呼</view>
					</view>
				</view>
				<view class="button-group">
					<view class="button1" @click="authenticationSuccess">
						<image src="../static/common/icon_rz.png" class="image"></image>
						开始认证
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		name: "Authentication",
		data() {
			return {

			};
		},
		props: {
			show: {
				type: Boolean,
				default: false //是否显示
			},
		},
		methods:{
			authenticationSuccess() {
				this.$emit('success')
			},
			authenticationCancel() {
				this.$emit('close')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.contentBox {
		width: 90vw;
		min-height: 440rpx;
		box-sizing: border-box;
		padding: 38rpx 44rpx 82rpx;
		box-shadow: 0rpx 4rpx 32rpx 0rpx #FFF0FD;
		border-radius: 32rpx;
		background: linear-gradient(180deg, #FFDAF5 0%, #FFFFFF 20%);
		position: relative;
		text-align: center;

		.popup-close {
			position: absolute;
			right: 0;
			top: -120rpx;
			width: 88rpx;
			height: 88rpx;
		}

		.popup-image {
			margin-top: 60rpx;
			width: 412rpx;
			height: 316rpx;
		}

		.popup-title {
			font-weight: 600;
			font-size: 34rpx;
			color: #323334;
			text-align: center;
		}


		.popup-tips {
			margin-top: 18rpx;
			font-size: 28rpx;
			color: #F169F6;
		}
		.tips-box{
			display: flex;
			justify-content: space-between;
			flex-wrap: wrap;
			margin-top: 50rpx;
			.tip-item{
				width: 50%;
				font-size: 28rpx;
				color: #9A9A9A;
				margin-bottom: 30rpx;
				display: flex;
				align-items: center;
				.dot{
					width: 12rpx;
					height: 12rpx;
					border-radius: 50%;
					background: #F169F6;
					margin-right: 14rpx;
				}
			}
		}
		.button-group {
			margin-top: 52rpx;

			.title {
				display: block;
				color: #ffffff;
				text-decoration: none;
			}
			.image {
				width: 32rpx;
				height: 32rpx;
				margin-right: 20rpx;
			}

			.button1 {
				display: flex;
				align-items: center;
				justify-content: center;
				margin: 0 auto;
				width: 600rpx;
				height: 88rpx;
				font-weight: bold;
				font-size: 30rpx;
				color: #FFFFFF;
				text-align: center;
				line-height: 88rpx;
				background: linear-gradient(135deg, #FE93BF 0%, #A27AFF 100%);
				border-radius: 44rpx;
			}
		}
	}
</style>